package com.zjxf.common;

/**
 * created with IntelliJ IDEA
 *
 * @author: create by limu
 * Date: 2020/7/7
 * Time：9:58
 */
public class ShiroConst {

    public static String SYSTEM_COOKIE_ID = String.valueOf(System.currentTimeMillis());

    public static final Long SHIRO_SCAN_LONE_SESSION = 3000L;  //扫描用户关闭浏览器的孤立会话
    public static final String SHIRO_LONE_SESSION_NAME = "ZJXF-SHIRO-LMC-SESSION";  //扫描用户关闭浏览器的孤立会话
    public static final String SHIRO_SESSION_COOKIE_NAME = "LMC_COOKIE_ID_";  //扫描用户关闭浏览器的孤立会话
    public static final Integer SHIRO_SESSION_COOKIE_MAX_AGE = -1;  //cookie失效时间
    public static final Integer SHIRO_SESSION_SESSION_MAX_AGE = 600;  //session超时时间
    public static final String SHIRO_USER_KEY_NAME = "ZJXF_LMC_SHIRO_USER";  //session超时时间

    public static final String KEY_PREFIX = "ZJXF-SHIRO-LMC-REDIS-SESSION:"; //自定义redis key 方便查询
    public static final String HEADER_AUTH_TOKEN_NAME = "AUTH_TOKEN"; //头部传递token名称
    public static final String REFERENCED_SESSION_ID_SOURCE = "Stateless request"; //


}
